// CheckCN.h: interface for the CCheckCN class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CHECKCN_H__1D8F62FD_6EA1_435D_9439_1C03FC700EF7__INCLUDED_)
#define AFX_CHECKCN_H__1D8F62FD_6EA1_435D_9439_1C03FC700EF7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "common.h"

class CMySheet;
class CEzWordAutomation;
class CParameterPackage;

class CCheckCN  
{
public:
	CCheckCN();
	virtual ~CCheckCN();

public:
	long DoCheck();

private:
	long CheckCNWords(FileInfo_t* pstFileInfo);
	BOOL IsFoundChineseWords(CString& strJap, CString& strCNWord);

	long DoCheck_XLS(FileInfo_t* pstFileInfo);
	long DoCheck_DOC(FileInfo_t* pstFileInfo);

	void MY_ListView_SetItemText(HWND HhwndLV, UINT i, UINT iSubItem, LPCTSTR pszText);
	void MY_ListView_SetItemState(HWND hwndLV, UINT i, UINT data, UINT mask);
	
private:	
	CStringArray m_wordLst;
	CParameterPackage* m_pParaPackage;

	CMySheet* m_pExcelEngine;
	CEzWordAutomation* m_pWordEngine;
};

#endif // !defined(AFX_CHECKCN_H__1D8F62FD_6EA1_435D_9439_1C03FC700EF7__INCLUDED_)
